package hrms.dao;

import hrms.entity.Staff;
import hrms.entity.Statistic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface StaffMapper {
    Staff findById(Integer id);
    void insertStaff(Staff staff);
    List<Staff> findByDept(Integer id);
    void updateByPrimaryKey(Staff staff);
    Staff findStaffById(@Param("id")int id);
    Staff findStaffByName(@Param("name")String name);
    List<Staff> findStaffByDepartment_id(@Param("department_id")int department_id);
    List<Staff> selectAllStaff();
    List<Statistic> statisticsGender();
    List<Statistic> statisticsPost();
    List<Statistic> statisticsEducation();
}